<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('SupervisionSideReport/index')}">旁站记录管理</a></li>
			<if condition="($level eq '0' or $level eq '3')"><li><a href="{:U('SupervisionSideReport/add')}">新增旁站记录</a></li></if>
		</ul>
        <form class="well form-search  form-inline" method="post" action="{:U('SupervisionSideReport/index')}">
            <div class="form-group">
                <label class="sr-only">标题</label>
                <input type="text" name="side_position" class="form-control" value="{:I('request.side_position/s','')}" placeholder="输入旁站部位查找...">
            </div>
            <button class="btn btn-primary" type="submit">搜索</button>
            <a class="btn btn-danger" href="{:U('SupervisionSideReport/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">编号</th>
					<th>旁站部位</th>
					<th>施工单位</th>
					<th>旁站开始时间</th>
					<th>旁站结束时间</th>
					<th>创建时间</th>
                    <th width="80">是否发布</th>
					<th>操作</th>
				</tr>
				<volist name="results" id="e">
				<tr>
					<td>{$e.code}</td>
					<td>{$e.side_position}</td>
					<td>{$e.executing_department}</td>
					<td>{$e.side_begin_time|substr=0,16}</td>
					<td>{$e.side_end_time|substr=0,16}</td>
					<td>{$e.publish_time}</td>
                    <td class="text-center">
                        <if condition="$e['is_publish'] eq 1">
                            <i class="glyphicon glyphicon-ok text-success"></i>
                            <else />
                            <i class="glyphicon glyphicon glyphicon-remove text-danger"></i>
                        </if>
                    </td>
					<td>
						<a href='{:U("SupervisionSideReport/view",array("id"=>$e["id"]))}'>查看</a>
						<if condition="$e['is_publish'] eq 0">
					    |
						<a href='{:U("SupervisionSideReport/edit",array("id"=>$e["id"]))}'>修改</a>
                        |
						<a class="js-ajax-delete" href="{:U('SupervisionSideReport/delete',array('id'=>$e['id']))}">删除</a>
						</if>

						<if condition="$e['is_publish'] eq 1 and $level eq 0">
                        |
						<a class="js-ajax-delete" href="{:U('SupervisionSideReport/delete',array('id'=>$e['id']))}">删除</a>
						</if>
					</td>
				</tr>
				</volist>
			</thead>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>